<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('Uselog', function (Blueprint $table) {
            $table->charset = 'utf8mb4';
            $table->collation = 'utf8mb4_unicode_ci';
            $table->id();
            $table->string('operator', 100)->nullable();
            $table->string('type', 200)->nullable();
            $table->string('billcaption', 200)->nullable();
            $table->timestamp('editdate')->nullable();
            $table->text('des');
            $table->string('from', 100)->nullable();
            $table->string('Ip', 100)->nullable();
            $table->integer('isdel')->nullable()->default(0);
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('Uselog');
    }
};
